home *** CD-ROM | disk | FTP | other *** search
- function setUpNewSound(soundName, vol)
- {
- var _loc1_ = _root;
- var _loc2_ = soundName;
- if(soundCount == undefined)
- {
- soundCount = 1;
- }
- _loc1_.createEmptyMovieClip("soundHolder" + soundCount,soundCount);
- _loc1_[_loc2_] = new Sound(_loc1_["soundHolder" + soundCount]);
- _loc1_[_loc2_].attachSound(_loc2_);
- _loc1_[_loc2_].setVolume(vol);
- soundCount++;
- }
- function newGame()
- {
- score = 0;
- currentJump = 1;
- jump1 = "";
- jump2 = "";
- jump3 = "";
- trace("currentJump " + currentJump);
- gotoAndStop("startLevel");
- }
- allsound = new Sound();
- vol = 1;
- var currentLevel = 1;
- var enemySlowSpeedArray = new Array(0,0.15,0.08,0.04);
- engineLoop = new Sound(this);
- engineLoop.attachSound("engineLoop");
- engineLoop.setVolume(100);
- engineNoise = new Sound(this);
- engineNoise.attachSound("engineNoise");
- engineNoise.setVolume(100);
- engineSlow = new Sound(this);
- engineSlow.attachSound("engineSlow");
- engineSlow.setVolume(100);
- var engineNoiseOffsets = new Array(0,0,0.5,1,1.5,2,2.5);
- setUpNewSound("skid",100);
- setUpNewSound("thud",100);
- stop();
-